import React, { Component } from 'react'
import MSHome from './MSHome'
import { AppWrapper, AppTitle } from './style'
export default class App extends Component {
  state = {
    theme: 'blue'
  }
  render() {
    return (
      <AppWrapper>
        <button onClick={() => this.handleChangeTheme()}>修改主题</button>
        <AppTitle theme={this.state.theme}>app</AppTitle>
        <MSHome></MSHome>
      </AppWrapper>
    )
  }
  handleChangeTheme() {
    this.setState({
      theme: 'green'
    })
  }
}
